<include file="Public/header" />
<div class="page">
  <div class="fixed-bar">
    <div class="item-title">
      <h3>权限管理</h3>
      <ul class="tab-base">
        <li><a href="JavaScript:void(0);" class="current"><span>管理</span></a></li>
        <li><a href="{:U('Setting/auth_list',array('op'=>'add'))}" ><span>添加</span></a></li>
      </ul>
    </div>
  </div>
  <div class="fixed-empty"></div>
  <form method="post" id="form_admin" action="{:U('Setting/admin_list',array('op'=>'del'))}">
    <table class="table tb-type2">
      <thead>
        <tr class="space">
          <th colspan="15" class="nobg"><?php echo $lang['nc_list'];?></th>
        </tr>
        <tr class="thead">
          <th><input type="checkbox" class="checkall" id="checkallBottom" name="chkVal"></th>
          <th>排序</th>
          <th>权限标题</th>
          <th>权限名称</th>
          <th class="align-center">状态</th>
          <th class="align-center">操作</th>
        </tr>
      </thead>
      <tbody>
        <volist name="list" id="vo">
        <tr class="hover">
          <td class="w24">
           <input name="del_id[]" type="checkbox" value="$vo['a_id']" disabled="disabled">
          </td>
           <td class="w48 sort"><span title="可编辑" ajax_branch="a_sort" datatype="number" fieldid="{$vo['a_id']}" ajax_control="Setting" fieldname="a_sort" nc_type="inline_edit" class="editable tooltip">{$vo['a_sort']}</span></td>
          <td>{$vo['a_title']}</td>
          <td>{$vo['a_name']}</td>
		  <td class="align-center yes-onoff">
          <if condition="$vo['a_show'] eq 1">
          <a href="JavaScript:void(0);" class="tooltip enabled" ajax_control="Setting" ajax_branch='a_show' nc_type="inline_edit" fieldname="a_show" fieldid="{$vo['a_id']}" fieldvalue="1" title="关闭">	<img src="__IMG__/transparent.gif"></a>
          <else/>
          <a href="JavaScript:void(0);" class="tooltip disabled" ajax_control="Setting" ajax_branch='a_show' nc_type="inline_edit" fieldname="a_show" fieldid="{$vo['a_id']}" fieldvalue="0" title="启用"><img src="__IMG__/transparent.gif"></a>          
          </if>
         </td>                   
          <td class="w150 align-center">
			<a href="{:U('Setting/auth_list',array('op'=>'edit','a_id'=>$vo['a_id']))}">编辑</a>
            &nbsp;|&nbsp;
            <a href='javascript:if(confirm("您确定要删除吗？"))window.location="{:U('Setting/auth_list',array('op'=>'del','a_id'=>$vo['a_id']))}";'>删除</a>
          </td>
        </tr>
        </volist>
      </tbody>
      <tfoot>
        <tr class="tfoot">
        <td colspan="16"></td>
        </tr>
      </tfoot>      
    </table>
  </form>
</div>
<script type="text/javascript" src="__JS__/jquery.edit.js" charset="utf-8"></script> 
<include file="Public/footer" />